<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--&lt;!&ndash; sidebar menu &ndash;&gt;-->
<!--<div id="sidebar-menu"-->
<!--     class="main_menu_side hidden-print main_menu">-->
<!--    <div class="menu_section">-->
<!--        <h3 th:text="${session.loginUser.role.roleName }">登录角色</h3>-->
<!--        <ul class="nav side-menu">-->
<!--            <li>-->
<!--                <a><i class="fa fa-home"></i> <span>权限管理</span> <span-->
<!--                        class="fa fa-chevron-down"></span></a>-->
<!--                <ul class="nav child_menu">-->
<!--                    <li><a href="user/list">用户管理</a>-->
<!--                    </li>-->
<!--                    <li><a href="javascript:;">角色管理</a>-->
<!--                    </li>-->
<!--                </ul>-->

<!--            </li>-->

<!--        </ul>-->

<!--    </div>-->

<!--</div>-->
<!--&lt;!&ndash; /sidebar menu &ndash;&gt;-->
<!-- sidebar menu -->
<div id="sidebar-menu" class="main_menu_side hidden-print main_menu"> 4.
    <div class="menu_section"><h3 th:text="${session.loginUser.role.roleName }">登录角色</h3>
        <ul class="nav side-menu">
            <li th:if="${right1.rightType=='Folder'}" th:each="right1:${session.loginUser.role.rights}"><a><i
                    class="fa fa-home"></i> <span th:text="${right1.rightText}">一级菜单</span> <span
                    class="fa fa-chevron-down"></span></a>

                <ul class="nav child_menu">
                    <li th:if="${right2.rightType=='Document' && right2.rightParentCode==right1.rightCode}"
                        th:each="right2:${session.loginUser.role.rights}"><a th:href="@{${right2.rightUrl}}"
                                                                             href="javascript:;"
                                                                             th:text="${right2.rightText}">二级菜单</a>
                    </li>

                </ul>

            </li>

        </ul>

    </div>

</div>
<!-- /sidebar menu -->
</body>
</html>